using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetWeiBoURLResp : GeneratedMessageLite<GetWeiBoURLResp, GetWeiBoURLResp.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetWeiBoURLResp, GetWeiBoURLResp.Builder>
		{
			private bool resultIsReadOnly;
			private GetWeiBoURLResp result;
			protected override GetWeiBoURLResp.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetWeiBoURLResp MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetWeiBoURLResp DefaultInstanceForType
			{
				get
				{
					return GetWeiBoURLResp.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string URL
			{
				get
				{
					return this.result.URL;
				}
				set
				{
					this.SetURL(value);
				}
			}
			public Builder()
			{
				this.result = GetWeiBoURLResp.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetWeiBoURLResp cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetWeiBoURLResp PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetWeiBoURLResp other = this.result;
					this.result = new GetWeiBoURLResp();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetWeiBoURLResp.Builder Clear()
			{
				this.result = GetWeiBoURLResp.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetWeiBoURLResp.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetWeiBoURLResp.Builder(this.result);
				}
				return new GetWeiBoURLResp.Builder().MergeFrom(this.result);
			}
			public override GetWeiBoURLResp BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetWeiBoURLResp.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetWeiBoURLResp)
				{
					return this.MergeFrom((GetWeiBoURLResp)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetWeiBoURLResp.Builder MergeFrom(GetWeiBoURLResp other)
			{
				return this;
			}
			public override GetWeiBoURLResp.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetWeiBoURLResp.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetWeiBoURLResp._getWeiBoURLRespFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetWeiBoURLResp._getWeiBoURLRespFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (num3 != 18u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasURL = input.ReadString(ref this.result.uRL_);
						}
					}
					else
					{
						BaseResponse.Builder builder = BaseResponse.CreateBuilder();
						if (this.result.hasBaseResponse)
						{
							builder.MergeFrom(this.BaseResponse);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.BaseResponse = builder.BuildPartial();
					}
				}
				return this;
			}
			public GetWeiBoURLResp.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public GetWeiBoURLResp.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public GetWeiBoURLResp.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public GetWeiBoURLResp.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public GetWeiBoURLResp.Builder SetURL(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasURL = true;
				this.result.uRL_ = value;
				return this;
			}
			public GetWeiBoURLResp.Builder ClearURL()
			{
				this.PrepareBuilder();
				this.result.hasURL = false;
				this.result.uRL_ = "";
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int URLFieldNumber = 2;
		private static readonly GetWeiBoURLResp defaultInstance;
		private static readonly string[] _getWeiBoURLRespFieldNames;
		private static readonly uint[] _getWeiBoURLRespFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasURL;
		private string uRL_ = "";
		private int memoizedSerializedSize = -1;
		public static GetWeiBoURLResp DefaultInstance
		{
			get
			{
				return GetWeiBoURLResp.defaultInstance;
			}
		}
		public override GetWeiBoURLResp DefaultInstanceForType
		{
			get
			{
				return GetWeiBoURLResp.DefaultInstance;
			}
		}
		protected override GetWeiBoURLResp ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string URL
		{
			get
			{
				return this.uRL_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasURL)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.URL);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetWeiBoURLResp()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getWeiBoURLRespFieldNames = GetWeiBoURLResp._getWeiBoURLRespFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, getWeiBoURLRespFieldNames[0], this.BaseResponse);
			}
			if (this.hasURL)
			{
				output.WriteString(2, getWeiBoURLRespFieldNames[1], this.URL);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasURL)
			{
				num ^= this.uRL_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetWeiBoURLResp getWeiBoURLResp = value as GetWeiBoURLResp;
			return getWeiBoURLResp != null && (this.hasBaseResponse == getWeiBoURLResp.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(getWeiBoURLResp.baseResponse_))) && (this.hasURL == getWeiBoURLResp.hasURL && (!this.hasURL || this.uRL_.Equals(getWeiBoURLResp.uRL_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetWeiBoURLResp, GetWeiBoURLResp.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<GetWeiBoURLResp, GetWeiBoURLResp.Builder>.PrintField("URL", this.hasURL, this.uRL_, writer);
		}
		public static GetWeiBoURLResp ParseFrom(byte[] data)
		{
			return GetWeiBoURLResp.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetWeiBoURLResp MakeReadOnly()
		{
			return this;
		}
		public static GetWeiBoURLResp.Builder CreateBuilder()
		{
			return new GetWeiBoURLResp.Builder();
		}
		public override GetWeiBoURLResp.Builder ToBuilder()
		{
			return GetWeiBoURLResp.CreateBuilder(this);
		}
		public override GetWeiBoURLResp.Builder CreateBuilderForType()
		{
			return new GetWeiBoURLResp.Builder();
		}
		public static GetWeiBoURLResp.Builder CreateBuilder(GetWeiBoURLResp prototype)
		{
			return new GetWeiBoURLResp.Builder(prototype);
		}
		static GetWeiBoURLResp()
		{
			GetWeiBoURLResp.defaultInstance = new GetWeiBoURLResp().MakeReadOnly();
			GetWeiBoURLResp._getWeiBoURLRespFieldNames = new string[]
			{
				"BaseResponse",
				"URL"
			};
			GetWeiBoURLResp._getWeiBoURLRespFieldTags = new uint[]
			{
				10u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.GetWeiBoURLResp.Descriptor, null);
		}
	}
}
